//
//  CollecList_Frame.m
//  LoveTravel
//
//  Created by MS on 16-1-23.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#define margin 10
#import "CollecList_Frame.h"
#import "NSString+Size.h"
@implementation CollecList_Frame

-(void)setList:(CollecListModel *)list
{
    _list = list;
    
    _subtitleViewHeight = 15;
    
    if (list.sub_title.length==0) {
         _subtitleViewHeight = 0;
    }
    
    if (list.short_desc.length) {
        CGSize textSize = [list.short_desc sizeWithString:CGSizeMake(WIDTH-20, MAXFLOAT) Font:14];
        self.textViewHeight = textSize.height;
    }
       
}



@end
